package com.lrs.java.j2se_advanced.classLoader;

public class TestClassLoader {
	
	public static void main(String[] args) {
		E e = new E();
		
		System.out.println("********************");
		
		F f = new F();
		
		G g = new G();
		
		new H();
		new H();
	}
	
}
class E {
	
}
class F {
	
}
class G {
	//static 语句块在类加载到内存后执行，并且只执行一次。
	static {
		System.out.println("GGGGGGGGG");
	}
}
class H {
	//动态语句块
	{
		System.out.println("HHHH");
	}
}